const mongoose = require('mongoose');
const Schema = mongoose.Schema
const BirdSchema = new Schema({
    BirdChineseName: {
        type: String,
        require: true,
        default: ''
    },
    BirdEnglishName: {
        type: String,
        require: true,
        default: ''
    },
    // 保护状况
    protectionStatus: {
        type: String,
        default: ''
    },
    // 简介
    introduction: {
        type: String,
        default: ''
    },
    // 图片列表
    imgList: {
        type: Array,
        default: []
    },
    // 分类
    classification: {
        mu: {
            type: String,
            default: ''
        },
        ke: {
            type: String,
            default: ''
        },
        shu: {
            type: String,
            default: ''
        }
    },
    // 栖息环境
    habitat: {
        type: String,
        default: ''
    },
    // 分布
    distribution: {
        type: String,
        default: ''
    },
    // 习性
    behavior: {
        type: String,
        default: ''
    },
    // 备用字段
    tag: {
        type: String,
        default: ''
    },
    // 叫声
    tweet: {
        type: Array,
        default: []
    },
    // 备用数组
    arr: {
        type: Array,
        default: []
    },
    // 性格
    character: {
        type: String,
        default: ''
    }
})
module.exports = mongoose.model('BirdSchema', BirdSchema)